#include"conact.h"

void menu()
{
    printf("***************************************\n");
    printf("*****  1.add        2.del**************\n");
    printf("*****  3.seek       4.modify***********\n");
    printf("*****  5.show       0.exit  ***********\n");
    printf("***************************************\n");
    printf("***************************************\n");
}
 


int main()
{
   menu();
   int input;
   conact con;
   csconact(&con);

   do
   {
     printf("请选择操作:>\n");
     scanf("%d",&input);
     switch(input)
      {
        case 1:
          add(&con);
          break;
        case 2:
          del(&con);
          break;
        case 3:
          seek(&con);
          break;
        case 4:
          modi(&con);
          break;
        case 5:
          show(&con);
          break;
        case 0:
          break;
        default:
          printf("输入错误，请重新输入\n");
          break;
      }
    
   } while (input);
   
   

}